#include<stdio.h>
#include<assert.h>
void* my_memcpy(void* arr2, const void* arr1, int sz)
{
	void* ret = arr2;
	assert(arr2 && arr1);
	while (sz--)
	{
		*(char*)arr2 = *(char*)arr1;
		arr1 = (char*)arr1 + 1;
		arr2 = (char*)arr2 + 1;
	}
	return ret;
}
int main()
{
	int arr1[] = { 1,2,3,4,5,6,7,8 };
	int arr2[20] = { 0 };
	int sz = sizeof(arr1);
	my_memcpy(arr2, arr1, sz);
	for (int i = 0; i < 8; ++i)
	{
		printf("%d", arr2[i]);
	}

}